<%- if @question.authored_by?(current_user) %>
<%= link_to 'Edit', edit_thought_path(@question), :class => 'button' %>
<%- end %>
<%= render :partial=>'thoughts/question', :object => @question %>

<%= link_to 'Submit your own response',new_thought_path(:parent_id => @question), :class => 'button' %>
<div class="responses">
<h3> <%= pluralize(@responses.size,"Answer") unless @responses.nil? %> </h3>
<%= render :partial => 'thoughts/response', :collection => @responses %>
</div>
<hr />
<%= link_to 'Back', thoughts_path %>
